import request from '@/utils/request'

// 查询后道手工列表
export function listHandmade(query) {
  return request({
    url: '/mes/fb/handmade/list',
    method: 'get',
    params: query
  })
}

// 查询后道手工详细
export function getHandmade(recordId) {
  return request({
    url: '/mes/fb/handmade/' + recordId,
    method: 'get'
  })
}

// 新增后道手工
export function addHandmade(data) {
  return request({
    url: '/mes/fb/handmade',
    method: 'post',
    data: data
  })
}

// 修改后道手工
export function updateHandmade(data) {
  return request({
    url: '/mes/fb/handmade',
    method: 'put',
    data: data
  })
}

// 删除后道手工
export function delHandmade(recordId) {
  return request({
    url: '/mes/fb/handmade/' + recordId,
    method: 'delete'
  })
}
